/*
 * Common.cpp
 *
 *  Created on: Aug 4, 2009
 *      Author: naveenoid
 */

#include "./Common.hpp"
#include <ctime>
#include <unistd.h>

namespace Octopus {

namespace Common {

void sWait ( double seconds )
{
	clock_t endwait;
	endwait = clock() + seconds * CLOCKS_PER_SEC ;
	while (clock() < endwait) {}
}

void uWait (long int uSeconds)
{
	usleep(uSeconds);
}

}
}
